<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>家族活动 - 家族树</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        body {
            font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
            background-color: #f8f8f8;
            color: #333;
            margin: 0;
            padding: 0;
            padding-bottom: 83px; /* 为底部导航栏留出空间 */
        }
        
        /* 状态栏样式 */
        .status-bar {
            height: 44px;
            background-color: #ffffff;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid #f0f0f0;
        }
        
        /* 顶部导航栏 */
        .top-nav {
            background-color: #ffffff;
            padding: 12px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #f0f0f0;
        }
        
        /* 底部导航栏样式 */
        .tab-bar {
            height: 83px;
            background-color: #ffffff;
            display: flex;
            justify-content: space-around;
            align-items: center;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            border-top: 1px solid #f0f0f0;
            padding-bottom: 20px; /* 适配iPhone底部安全区域 */
        }
        
        .tab-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #999;
            font-size: 10px;
            padding: 8px 0;
        }
        
        .tab-item.active {
            color: #e86c60; /* 主题色 */
        }
        
        .tab-icon {
            font-size: 22px;
            margin-bottom: 4px;
        }
        
        /* 标签切换样式 */
        .tabs {
            display: flex;
            background-color: white;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .tab {
            flex: 1;
            text-align: center;
            padding: 12px 0;
            font-size: 14px;
            color: #666;
            position: relative;
        }
        
        .tab.active {
            color: #e86c60;
            font-weight: 600;
        }
        
        .tab.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 25%;
            width: 50%;
            height: 3px;
            background-color: #e86c60;
            border-radius: 3px;
        }
        
        /* 活动卡片样式 */
        .activity-card {
            background-color: white;
            border-radius: 12px;
            margin: 16px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        
        .activity-image {
            width: 100%;
            height: 160px;
            object-fit: cover;
        }
        
        .activity-content {
            padding: 16px;
        }
        
        .activity-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #333;
        }
        
        .activity-info {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            font-size: 14px;
            color: #666;
        }
        
        .activity-info i {
            margin-right: 6px;
            color: #e86c60;
            width: 16px;
        }
        
        .activity-description {
            font-size: 14px;
            line-height: 1.5;
            color: #666;
            margin-bottom: 16px;
        }
        
        .activity-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid #f0f0f0;
            padding-top: 12px;
        }
        
        .activity-organizer {
            display: flex;
            align-items: center;
        }
        
        .organizer-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 8px;
        }
        
        .organizer-name {
            font-size: 12px;
            color: #666;
        }
        
        .activity-status {
            font-size: 12px;
            padding: 4px 8px;
            border-radius: 4px;
        }
        
        .status-upcoming {
            background-color: #f8d9d5;
            color: #e86c60;
        }
        
        .status-ongoing {
            background-color: #d1f8d9;
            color: #4caf50;
        }
        
        .status-past {
            background-color: #f0f0f0;
            color: #999;
        }
        
        /* 浮动按钮 */
        .floating-button {
            position: fixed;
            bottom: 100px;
            right: 20px;
            width: 56px;
            height: 56px;
            border-radius: 28px;
            background-color: #e86c60;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(232, 108, 96, 0.4);
            z-index: 10;
        }
        
        .floating-button i {
            font-size: 24px;
        }
        
        /* 日历视图 */
        .calendar-view {
            background-color: white;
            margin: 16px;
            border-radius: 12px;
            padding: 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        
        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        
        .calendar-title {
            font-size: 16px;
            font-weight: 600;
        }
        
        .calendar-nav {
            display: flex;
        }
        
        .calendar-nav-button {
            width: 28px;
            height: 28px;
            border-radius: 14px;
            background-color: #f0f0f0;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 8px;
        }
        
        .calendar-weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            text-align: center;
            font-size: 12px;
            color: #999;
            margin-bottom: 8px;
        }
        
        .calendar-days {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 8px;
        }
        
        .calendar-day {
            aspect-ratio: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            border-radius: 8px;
            position: relative;
        }
        
        .calendar-day.today {
            background-color: #e86c60;
            color: white;
        }
        
        .calendar-day.has-event::after {
            content: '';
            position: absolute;
            bottom: 4px;
            width: 4px;
            height: 4px;
            border-radius: 2px;
            background-color: #e86c60;
        }
        
        .calendar-day.today.has-event::after {
            background-color: white;
        }
        
        /* 搜索框样式 */
        .search-bar {
            background-color: #f0f0f0;
            border-radius: 20px;
            padding: 8px 16px;
            display: flex;
            align-items: center;
            margin-right: 12px;
            flex: 1;
        }
        
        .search-icon {
            color: #999;
            margin-right: 8px;
        }
        
        .search-input {
            background: transparent;
            border: none;
            outline: none;
            font-size: 14px;
            flex: 1;
        }
    </style>
</head>
<body>
    <!-- iOS状态栏 -->
    <div class="status-bar">
        <div class="time font-medium">9:41</div>
        <div class="icons flex">
            <i class="fas fa-signal mr-1"></i>
            <i class="fas fa-wifi mr-1"></i>
            <i class="fas fa-battery-full"></i>
        </div>
    </div>
    
    <!-- 顶部导航栏 -->
    <div class="top-nav">
        <div class="search-bar">
            <i class="fas fa-search search-icon"></i>
            <input type="text" class="search-input" placeholder="搜索活动...">
        </div>
        <a href="#" class="text-gray-800">
            <i class="fas fa-filter text-xl"></i>
        </a>
    </div>
    
    <!-- 标签切换 -->
    <div class="tabs">
        <div class="tab active">活动列表</div>
        <div class="tab">日历视图</div>
        <div class="tab">我的活动</div>
    </div>
    
    <!-- 活动列表 -->
    <div class="activity-list">
        <!-- 活动1 -->
        <div class="activity-card">
            <img src="https://images.unsplash.com/photo-1511795409834-ef04bbd61622?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80" alt="家族年度聚会" class="activity-image">
            <div class="activity-content">
                <h3 class="activity-title">家族年度聚会</h3>
                
                <div class="activity-info">
                    <i class="fas fa-calendar-alt"></i>
                    <span>2023年10月15日 09:00-18:00</span>
                </div>
                
                <div class="activity-info">
                    <i class="fas fa-map-marker-alt"></i>
                    <span>江苏省南京市祖屋</span>
                </div>
                
                <div class="activity-info">
                    <i class="fas fa-users"></i>
                    <span>已有28人报名参加</span>
                </div>
                
                <p class="activity-description">
                    一年一度的家族聚会即将举行，届时将有祭祖仪式、家族合影、共进午餐等活动。请各位家族成员准时参加，共叙亲情。
                </p>
                
                <div class="activity-footer">
                    <div class="activity-organizer">
                        <img src="https://images.unsplash.com/photo-1599566150163-29194dcaad36?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80" alt="王叔叔" class="organizer-avatar">
                        <span class="organizer-name">王叔叔 发起</span>
                    </div>
                    
                    <div class="activity-status status-upcoming">即将开始</div>
                </div>
            </div>
        </div>
        
        <!-- 活动2 -->
        <div class="activity-card">
            <img src="https://images.unsplash.com/photo-1472653431158-6364773b2a56?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80" alt="家族旅行" class="activity-image">
            <div class="activity-content">
                <h3 class="activity-title">家族旅行 - 黄山三日游</h3>
                
                <div class="activity-info">
                    <i class="fas fa-calendar-alt"></i>
                    <span>2023年11月20日-22日</span>
                </div>
                
                <div class="activity-info">
                    <i class="fas fa-map-marker-alt"></i>
                    <span>安徽省黄山市</span>
                </div>
                
                <div class="activity-info">
                    <i class="fas fa-users"></i>
                    <span>已有15人报名参加</span>
                </div>
                
                <p class="activity-description">
                    组织家族成员一起去黄山旅行，欣赏美丽的自然风光，增进家族成员之间的感情。费用AA制，请有意向的家族成员尽快报名。
                </p>
                
                <div class="activity-footer">
                    <div class="activity-organizer">
                        <img src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80" alt="张明" class="organizer-avatar">
                        <span class="organizer-name">张明 发起</span>
                    </div>
                    
                    <div class="activity-status status-upcoming">即将开始</div>
                </div>
            </div>
        </div>
        
        <!-- 活动3 -->
        <div class="activity-card">
            <img src="https://images.unsplash.com/photo-1559734840-f9509ee5677f?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80" alt="家族祭祖" class="activity-image">
            <div class="activity-content">
                <h3 class="activity-title">清明家族祭祖活动</h3>
                
                <div class="activity-info">
                    <i class="fas fa-calendar-alt"></i>
                    <span>2023年4月5日 10:00-12:00</span>
                </div>
                
                <div class="activity-info">
                    <i class="fas fa-map-marker-alt"></i>
                    <span>江苏省南京市栖霞区张家祖坟</span>
                </div>
                
                <div class="activity-info">
                    <i class="fas fa-users"></i>
                    <span>32人参加</span>
                </div>
                
                <p class="activity-description">
                    清明节期间组织家族成员一起祭拜祖先，缅怀先人，传承家族文化。活动包括扫墓、祭祀仪式等。
                </p>
                
                <div class="activity-footer">
                    <div class="activity-organizer">
                        <img src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80" alt="张建国" class="organizer-avatar">
                        <span class="organizer-name">张建国 发起</span>
                    </div>
                    
                    <div class="activity-status status-past">已结束</div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 浮动按钮 - 创建活动 -->
    <a href="#" class="floating-button">
        <i class="fas fa-plus"></i>
    </a>
    
    <!-- 底部导航栏 -->
    <div class="tab-bar">
        <a href="home.html" class="tab-item">
            <i class="tab-icon fas fa-home"></i>
            <span>首页</span>
        </a>
        <a href="family_tree.html" class="tab-item">
            <i class="tab-icon fas fa-sitemap"></i>
            <span>家谱</span>
        </a>
        <a href="family_activity.html" class="tab-item active">
            <i class="tab-icon fas fa-calendar-alt"></i>
            <span>活动</span>
        </a>
        <a href="family_stories.html" class="tab-item">
            <i class="tab-icon fas fa-book"></i>
            <span>故事</span>
        </a>
        <a href="profile.html" class="tab-item">
            <i class="tab-icon fas fa-user"></i>
            <span>我的</span>
        </a>
    </div>
</body>
</html> 